package lab01;

/**
 * Created by Administrator on 2017/10/9.
 */
public class Text06 {
    public static void main(String[] args) {
        /*int scor = 1;
        if (scor == 1) {
            System.out.println("不及格");
        }else if(scor==2){
            System.out.println("及格");
        }else if(scor==3){
            System.out.println("中等");
        }else if(scor==4){
            System.out.println("良好");
        }else if(scor==5){
            System.out.println("优秀");
       */

        int scor = 1;
        switch (scor) {
            case 1:
                System.out.println("不及格");break;
        }
        switch (scor) {
            case 2:
                System.out.println("及格");break;
        }
        switch (scor) {
            case 3:
                System.out.println("中等");break;
        }
        switch (scor) {
            case 4:
                System.out.println("良好");break;
        }
        switch (scor) {
            case 5:
                System.out.println("优秀");break;
        }
    }
}
